"""

作者：李海强
创建时间：2024/03/07 15:57
最后修改时间:

"""
from django.urls import re_path
from django.urls import path
from rest_framework.routers import DefaultRouter
from .views import *


router = DefaultRouter()

# router.register("staruser", StarUserViewSet, basename="staruser")
router.register("staruser", StarUserViewSet, basename="staruser")
router.register("loginhistory", LoginHistoryViewSet, basename="loginhistory")

urlpatterns = [
    re_path(
        "changepwd",
        StarUserViewSet.as_view({"post": "change_pwd"}),
    ),
    re_path(
        "resetpwd",
        StarUserViewSet.as_view({"post": "reset_pwd"}),
    ),
]

urlpatterns += router.urls
